<%-- ExMobi JSP文件，注释和取消快捷键统一为Ctrl+/ 多行注释为Ctrl+Shift+/ --%>
<%@ page language="java" import="java.util.*,sun.net.ftp.*,java.net.*"
 contentType="application/text; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/client/adapt.jsp"%>
<%@ include file="/client/adapt_extend.jsp"%>
<%@ include file="properties.jsp" %>
<%
	JSONObject json = new JSONObject();
    String filepath = aa.req.getAttachAddr("file");
    String filename = aa.req.getAttachName("file");
    String restString = "";
	try{
		restString = encodeBase64File(filepath);
	}catch(Exception e){
		  String msg  = "FTP服务通讯失败！";
		  System.out.println(e);
		  out.print("错误信息："+e);
	}
	System.out.println("restString="+restString);
	json.put("base64", restString);
	out.print(json.toString());
%>
